Ext.define('DCApp.model.CcPayHistory', {
    extend: 'DCApp.model.Base',
    fields: [
        {name: 'id', type: 'int'},
        {name: 'beginTm', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'endTm', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'confirmMan'},
        {name: 'path'},
        {
            name: 'uri',
            calculate: function (data) {
              var path = data.path;
              if(path)
            	  path = path.replace(/\\/g,'/');
        	  var uri = '/fileopen?_dc='+new Date().getTime()+'&fp=/'+path; 
        	  return uri;
            }
        }
    ]
});
